/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pclong.fightlandlordserver;

import org.simpleframework.xml.Default;
import org.simpleframework.xml.Element;

/**
 *
 * @author long@7road.com
 */
@Default
public class UserConfigEntity {
    /// <summary>
    ///  Gets or sets the user name.
    /// </summary>

    @Element(required = false)
    private String UserName;
    @Element(required = false)
    private String NickName;
    /// <summary>
    ///  Gets or sets the password.
    /// </summary>
    @Element(required = false)
    private String Password;
    /// <summary>
    ///  Gets or sets the password salt.
    /// </summary>
    @Element(required = false)
    private String Salt;
    @Element(required = false)
    private String Permissions;
    @Element(required = false)
    private String Money;
    @Element(required = false)
    private String Score;
    /// <summary>
    /// 
    /// </summary>

    public UserConfigEntity() {
        UserName = "";
        NickName = "";
        Password = "";
        Salt = "";
        Permissions = "None"; // UserPermissions.None;
        Money="0";
        Score="0";
    }

    public UserConfigEntity(String username, String psd) {
        UserName = username;
        NickName = username;
        Password = psd;
        Salt = "";
        Permissions = "None"; // UserPermissions.None;
    }

    /**
     * @return the UserName
     */
    public String getUserName() {
        return UserName;
    }

    /**
     * @param UserName the UserName to set
     */
    public void setUserName(String UserName) {
        this.UserName = UserName;
    }

    /**
     * @return the Password
     */
    public String getPassword() {
        return Password;
    }

    /**
     * @param Password the Password to set
     */
    public void setPassword(String Password) {
        this.Password = Password;
    }

    /**
     * @return the Salt
     */
    public String getSalt() {
        return Salt;
    }

    /**
     * @param Salt the Salt to set
     */
    public void setSalt(String Salt) {
        this.Salt = Salt;
    }

    /**
     * @return the Permissions
     */
    public String getPermissions() {
        return Permissions;
    }

    /**
     * @param Permissions the Permissions to set
     */
    public void setPermissions(String Permissions) {
        this.Permissions = Permissions;
    }

    /**
     * @return the NickName
     */
    public String getNickName() {
        return NickName;
    }

    /**
     * @param NickName the NickName to set
     */
    public void setNickName(String nickName) {
        this.NickName = nickName;
    }

    /**
     * @return the Money
     */
    public String getMoney() {
        return Money;
    }

    /**
     * @param Money the Money to set
     */
    public void setMoney(String Money) {
        this.Money = Money;
    }

    /**
     * @return the Score
     */
    public String getScore() {
        return Score;
    }

    /**
     * @param Score the Score to set
     */
    public void setScore(String Score) {
        this.Score = Score;
    }
}
